<div class="row">
		    <script type="text/javascript" src="/static/assets/js/jquery.form.js"></script>
			<form method="post" id="avatarForm" enctype="multipart/form-data">
					<input type="file" style="display:none;" name="excel" id="importExcel">
			</form>
			<script type="text/javascript">
				$(function() {
					$("#importExcel").on("change", function() {
						importFun();
					});
				});

				function importFun(){
					var index=appLoading();
					$("#avatarForm").ajaxSubmit({
						url : "/#(code)/importExcel",
						type : "post",
						dataType : "json",
						success : function(data) {
							window.location.href = "/#(code)";
							if(data.state=='ok'){
								window.top.layer.alert(data.msg, {icon: 1,title:"成功"});
							}else{
								window.top.layer.alert(data.msg, {icon: 2,title:"发生错误"});
							}
						}
					});
				}
			</script>
		</div>